* lisp/hi-lock.el: Refine the choice of default face.
authorJambunathan K <kjambunathan@gmail.com>
Mon, 10 Dec 2012 18:33:59 +0000 (13:33 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 10 Dec 2012 18:33:59 +0000 (13:33 -0500)
commitef73c76aacdfa53c98143e4f10cc724308577dea
treeac5091861bb7c81ff76f9f9b5a583de9e00fa0ee
parentee7f3f7bc53157e9bc9d9e05e3cfa6891ee903eb
* lisp/hi-lock.el: Refine the choice of default face.
(hi-lock-keyword->face): New function.  Use it wherever we used
cadadadr instead.
(hi-lock--regexps-at-point): Ignore faces that can't come from hi-lock.
(hi-lock--last-face): Remove var.
(hi-lock--unused-faces): New var to replace it.
(hi-lock-read-face-name): Use/maintain it.
(hi-lock-unface-buffer): Maintain it.  Fix error for the C-u case.
(hi-lock-set-pattern): Ignore new rule if it has the same regexp even
if it has another face.
lisp/ChangeLog
lisp/hi-lock.el